import Vue from 'vue'
import Vuex from 'vuex'
// ------------------------------------
import app from './modules/app'
import user from './modules/user'
import tagsView from './modules/tagsView'
import permission from './modules/permission'//  动态加载菜单
import getters from './getters'
import system from './modules/systemManage' //  系统管理
import brokenPoint from './modules/brokenPoint' //  弹出框
import sysCode from './modules/sysCode' //  系统码表
import resourceManage from './modules/resourceManage' //  资源管理
import setting from './modules/setting' //  系统设置
// import bigScreen from './modules/bigScreen' //  大屏
import userInfo from './modules/userInfo' // 用户信息获取 日志展示
import tackManage from './modules/tackManage' // 用户信息获取 日志展示

import libaryClass from './modules/libaryClass' // 资源库类型管理
import antv from './modules/antv' // 资源库类型管理
import libraryManage from './modules/libraryManage' // 文档库管理
import workFlowManage from './modules/workFlowManage'
import utilityTool from './modules/utilityTool' // 工作流管理
import fileCommon from './modules/fileCommon' // 附件相关公共
import common from './modules/common' // 公共相关


// 双栈分析
import { comprehensiveQueryModule } from './modules/dualStack'
import { imageDragMoudules } from './modules/imageDrag'

// ------------------------------------------
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    tagsView,
    permission,
    brokenPoint,
    system,
    sysCode,
    // bigScreen,
    resourceManage,
    setting,
    userInfo,
    tackManage,
    libaryClass,
    antv,
    libraryManage,
    workFlowManage,
    utilityTool,
    fileCommon,
    common,

    // 双栈分析
    comprehensiveQueryModule,

    //图表拖拽
    imageDragMoudules
  },
  getters
})

export default store
